# -*- coding: utf-8 -*-
# @Time    : 2021/10/19 8:14
# @Author  : super

class Point(object):
	def __init__(self, x, y):
		self.x = x
		self.y = y

	def string(self):
		print(f'x:{self.x},y:{self.y}')

class Circle(Point):
	def __init__(self, x, y, radius):
		super().__init__(self, x, y)
		self.radius = radius

	def string(self):
		print("该图形初始化点为：{X：{0}, Y：{1}}; {半径为：{2}}".format(self.x, self.y, self.radius))

class Size(object):
	def __init__(self, width, heigh):
		self.width = width
		self.heigh = heigh

	def string(self):
		print("{Width：{0}, Height：{1}}".format(self.width, self.heigh))
class Rectangle(Point, Size):
	def __init__(self):
		Rectangle().__init__(self)

if __name__=="__main__":
	pass

# 实例化Circle对象，圆心为（5,5），半径为8
# 实例化Rectangle对象，顶点位置（15,15），长和宽
# 实例化Rectangle对象，顶点位置（40,30），长和宽